package com.javatiaocao.myblog.service;

import com.javatiaocao.myblog.model.Article;
import com.javatiaocao.myblog.utils.DataMap;

import java.util.Map;

public interface ArticleService {
    //文件分页，查询文章列表

    //分页查询
    DataMap selectArticleWithPage(int rows, int pageNum);

    DataMap deleteArticle(Integer id);

    DataMap publishArticle(Article article);

    DataMap updateArticle(Article article);

    DataMap getDraftArticle(Integer id);

    DataMap selectMyArticleWithPage(int rows, int pageNum);

    DataMap getArticleThumbsUp(String phone,int rows, int pageNum);

    DataMap readAllThumbsUp(String phone);

    Map<String, String> findArticleTitleByArticleId(long articleId);

    DataMap getArticleByArticleId(long articleId);

    DataMap getCategoryArticle(Integer rows, Integer pageNum, String category);
}
